a98a219da7209f6042139baa5fd794188d10c406,src/main/java/org/squiddev/cctweaks/CommandCCTweaks.java,CommandCCTweaks,processCommand,#ICommandSender#String[]#,73
Before Change
.appendSibling(header("Id", 3))
.appendSibling(SEPARATOR)
.appendSibling(header("Computer", 19))
.appendSibling(SEPARATOR)
.appendSibling(header("Tasks", 5))
.appendSibling(SEPARATOR)
.appendSibling(header("Total", 5))
.appendSibling(SEPARATOR)
.appendSibling(header("Mean", 6))
);
for (ComputerMonitor.ComputerEntry entry : entries) {
Computer computer = entry.getComputer();
ServerComputer serverComputer = lookup.get(computer);
IChatComponent position;
if (serverComputer == null) {
position = fixed("?", 19);
} else {
position = link(fixed(formatPosition(serverComputer.getPosition()), 19), serverComputer.getPosition(), sender);
}
sender.addChatMessage(new ChatComponentText("")
.appendSibling(fixed(Integer.toString(computer.getID()), 3))
.appendSibling(SEPARATOR)
.appendSibling(position)
.appendSibling(SEPARATOR)
.appendSibling(formatted("%5d", entry.getTasks()))
.appendSibling(SEPARATOR)
.appendSibling(formatted("%5d", entry.getTime()))
.appendSibling(SEPARATOR)
.appendSibling(formatted("%4.1f", (double) entry.getTime() / entry.getTasks()))
);
After Change
.appendSibling(header("Istn", 5))
.appendSibling(SEPARATOR)
.appendSibling(header("Id", 3))
.appendSibling(SEPARATOR)
.appendSibling(header("Computer", 19))
.appendSibling(SEPARATOR)
.appendSibling(header("Tasks", 5))
.appendSibling(SEPARATOR)
.appendSibling(header("Total", 5))
.appendSibling(SEPARATOR)
.appendSibling(header("Mean", 6))
);
for (ComputerMonitor.ComputerEntry entry : entries) {
Computer computer = entry.getComputer();
ServerComputer serverComputer = lookup.get(computer);
IChatComponent position;
if (serverComputer == null) {
position = fixed("<no computer>", 19);
} else {
position = link(fixed(formatPosition(serverComputer.getPosition()), 19), serverComputer.getPosition(), sender);
}
sender.addChatMessage(new ChatComponentText("")
.appendSibling(fixed(Integer.toString(serverComputer == null ? -1 : serverComputer.getInstanceID()), 5))
.appendSibling(SEPARATOR)
.appendSibling(fixed(Integer.toString(computer.getID()), 3))
.appendSibling(SEPARATOR)
.appendSibling(position)
.appendSibling(SEPARATOR)
.appendSibling(formatted("%5d", entry.getTasks()))
.appendSibling(SEPARATOR)
.appendSibling(formatted("%5d", entry.getTime()))
.appendSibling(SEPARATOR)